export function getUserInfo() {
  return uni.getStorageSync('userInfo')
}

export function setUserInfo(data) {
  uni.setStorage({ key: 'userInfo', data }).then()
}

export function clearUserInfo() {
  uni.removeStorage({ key: 'userInfo' }).then()
}

export function getTokenInfo() {
  return uni.getStorageSync('token')
}

export function setTokenInfo(data) {
  uni.setStorageSync('token', data)
}

export function clearTokenInfo() {
  uni.removeStorageSync('token')
}
